/** 
 * @fileoverview 
 * net.feed package
 * 
 * 
 * @author Kelemen Viktor kelemen.viktor@gmail.com
 * @version 0.1
 * 
 */

YAHOO.namespace('net.feed');
		
	/**
	 * Gets a feed
	 * 
	 * @param {Object} feed URL of the feed
	 * @param {Object} callbackname The function that will be called
	 */
	YAHOO.net.feed.getFeed = function(feed, callbackname) {	
		YAHOO.util.Get.script('http://pipes.yahoo.com/pipes/9oyONQzA2xGOkM4FqGIyXQ/run?&_render=json&_callback='+callbackname+'&feed='+feed);
    }     
	
	
	/**
	 * Common feeds
	 * 
	 * @param {String} Flick ID
	 * @return Flickr latest RSS
	 */
	YAHOO.net.feed.flickr = function(id) {
		return "http://api.flickr.com/services/feeds/photos_public.gne?id="+id+"&lang=en-us&format=rss_200";
	}
		
